/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:36 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.plagehoraire.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;


import javax.persistence.*;

@Entity
@Table(name="plagehoraire", catalog="dbscoremanager" )
public class Plagehoraire implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @Column(name="idPlageHoraire", nullable=false)
    private int        idplagehoraire ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="idCalendrier", nullable=false)
    private int        idcalendrier ;
    @Column(name="jourSemaine", length=254)
    private String     joursemaine  ;
    @Column(name="hEntree")
    private Integer    hentree      ;
    @Column(name="mEntree")
    private Integer    mentree      ;
    @Column(name="hSortie")
    private Integer    hsortie      ;
    @Column(name="mSortie")
    private Integer    msortie      ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Plagehoraire()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdplagehoraire( int value )
    {
        this.idplagehoraire = value;
    }
    public int getIdplagehoraire()
    {
        return this.idplagehoraire;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : idCalendrier ( INT ) 
    public void setIdcalendrier( int value )
    {
        this.idcalendrier = value;
    }
    public int getIdcalendrier()
    {
        return this.idcalendrier;
    }

    //--- DATABSE MAPPING : jourSemaine ( VARCHAR ) 
    public void setJoursemaine( String value )
    {
        this.joursemaine = value;
    }
    public String getJoursemaine()
    {
        return this.joursemaine;
    }

    //--- DATABSE MAPPING : hEntree ( INT ) 
    public void setHentree( Integer value )
    {
        this.hentree = value;
    }
    public Integer getHentree()
    {
        return this.hentree;
    }

    //--- DATABSE MAPPING : mEntree ( INT ) 
    public void setMentree( Integer value )
    {
        this.mentree = value;
    }
    public Integer getMentree()
    {
        return this.mentree;
    }

    //--- DATABSE MAPPING : hSortie ( INT ) 
    public void setHsortie( Integer value )
    {
        this.hsortie = value;
    }
    public Integer getHsortie()
    {
        return this.hsortie;
    }

    //--- DATABSE MAPPING : mSortie ( INT ) 
    public void setMsortie( Integer value )
    {
        this.msortie = value;
    }
    public Integer getMsortie()
    {
        return this.msortie;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
